<?php
	defined('_JEXEC') or die; //no direct access
?>
<div class="subhead">
					  <form name="form1" id="form1" method="GET" action="<?php echo JRoute::_('index.php?option=com_normal&task=search'); ?>">
					    <p>Location:
                        <select name="location">
							<option value="<?php echo '-1' ?>">
								<?php echo 'All' ?>
							</option>
<?php foreach($this->locations as $item) : ?>
							  <option value="<?php echo $item->id ?>"
								<?php if($item->id == JRequest::getVar('location')) { ?>selected="selected"<?php }; ?>>
								<?php echo $item->name ?>
							  </option>
<?php endforeach; ?>
						</select>
						Timespan:
						<select name="timespan">
							<option value="<?php echo '-1' ?>">
								<?php echo 'All' ?>
							</option>
<?php foreach($this->timespans as $item) : ?>
							  <option value="<?php echo $item->id ?>"
								<?php if($item->id == JRequest::getVar('timespan')) { ?>selected="selected"<?php }; ?>>
								<?php echo $item->name ?>
							  </option>
<?php endforeach; ?>
						</select>
						Industry:
						<select name="industry">
							<option value="<?php echo '-1' ?>">
								<?php echo 'All' ?>
							</option>
<?php foreach($this->industries as $item) : ?>
							  <option value="<?php echo $item->id ?>"
								<?php if($item->id == JRequest::getVar('industry')) { ?>selected="selected"<?php }; ?>>
								<?php echo $item->name ?>
							  </option>
<?php endforeach; ?>
						</select>
                        </p>
					    <p>Keyword(s):
                            <input type="text" name="keywords" value="<?php echo JRequest::getVar('keywords'); ?>" />
                        </p>
					    <p>
                          <input type="submit" value="Search"/>
                        </p>
				      </form>
</div>